module.exports = {
  title: 'vuepress', // 设置网站标题
  base: '/vuepress-ui/',
  description: 'vuepress-ui', //描述
  dest: './dist',   // 设置输出目录
  port: 8001, //端口
  themeConfig: { //主题配置
    // 添加导航栏
    nav: [
      { text: '主页', link: '/' }, // 导航条
      { text: 'ui文档', link: '/page/ui/' },
      { text: '知识库', link: '/page/knowledge/' },
      // {
      //   text: 'github',
      //   items: [
      //     { text: 'focus-outside', link: 'https://github.com/TaoXuSheng/focus-outside' },
      //     { text: 'stylus-converter', link: 'https://github.com/TaoXuSheng/stylus-converter' },
      //   ]
      // }
    ],
    // 为以下路由添加侧边栏
    sidebar:{
      '/page/ui/': [
        {
          title: '',
          collapsable: false,
          children: [
            {
              title: 'button',
              path: 'button/'
            },
            {
              title: 'switch',
              path: 'switch/'
            },
            {
              title: 'tag',
              path: 'tag/'
            },
            {
              title: 'progress',
              path: 'progress/'
            },
          ]
        },
      ],
      '/page/knowledge/': [
        {
          title: '',
          collapsable: false,
          children: [
            {
              title: 'css知识库',
              path: 'cssStore/'
            },
            {
              title: 'js知识库',
              path: 'jsStore/'
            }
          ]
        },
      ]
    }
  }
}